package com.liu.auto.token;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    private final long DEFAULT_TIME = 30*60*1000;
    private  final  String DEFAULT_SECRET = "asdgh98wehb23><?@*((#@sdaf";

    long vlidTime;//单位是分钟

    String secret;//密钥

    public TokenProperties() {
        this.vlidTime=DEFAULT_TIME;
        this.secret = DEFAULT_SECRET;
    }

    public long getVlidTime() {
        return vlidTime;
    }

    public void setVlidTime(long vlidTime) {
        this.vlidTime = vlidTime;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
